package cn.zwx.mvcframework.aop.advice;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.lang.reflect.Method;

/**
 * 切入点
 * @author zhangwenxue
 */
@AllArgsConstructor
@NoArgsConstructor
public class ZwxAdvice {

    /**
     * 切面类对象
     */
    private Object aspect;
    /**
     * 切面类方法
     */
    private Method adviceMethod;
    /**
     * 切面异常拦截
     */
    private String throwName;


    public ZwxAdvice(Object aspect, Method adviceMethod) {
        this.aspect = aspect;
        this.adviceMethod = adviceMethod;
    }

    public Object getAspect() {
        return aspect;
    }

    public void setAspect(Object aspect) {
        this.aspect = aspect;
    }

    public Method getAdviceMethod() {
        return adviceMethod;
    }

    public void setAdviceMethod(Method adviceMethod) {
        this.adviceMethod = adviceMethod;
    }

    public String getThrowName() {
        return throwName;
    }

    public void setThrowName(String throwName) {
        this.throwName = throwName;
    }
}
